/**
 * 作者:李杰
 * email: maillijie@gmail.com
 */
package com.javainfo.logic;

import com.javainfo.entity.Article;
import com.javainfo.entity.SubArticle;
import com.javainfo.entity.User;

public class CompetenceComponent {

	public static final String IS_SYSADMIN = "99";
	
	public static final String UN_LOGIN = "00";
	
	public static final String IS_USER = "01";
	
	public static final String IS_MANAGER = "02";
	
	public static final String IS_TOP_MANAGER = "03";
	
	public static boolean canCreateArticle(User loginUser){
		return true;
	}
	
	public static boolean canCreateSubArticle(User loginUser){
		return true;
	}
	
	public static boolean canEditArticle(Article article,User loginUser){
		return true;
	}

	public static boolean canEditSubArticle(SubArticle subArticle,User loginUser){
		return true;
	}

	public static boolean isSystemManager(User loginUser){
		return true;
	}
}
